package com.antgroup.seckill.business.goods.service;

import com.antgroup.seckill.business.common.vo.request.GoodsQueryRequest;
import com.antgroup.seckill.business.common.vo.request.GoodsRequest;
import com.antgroup.seckill.business.common.vo.request.UpdateGoodsRequest;
import com.antgroup.seckill.business.common.vo.response.GoodsVo;
import com.antgroup.seckill.business.goods.model.Goods;
import com.antgroup.seckill.business.goods.model.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangxy
 * @since 2024-07-30
 */
public interface IGoodsService extends IService<Goods> {

    List<GoodsVo> queryAllGoods();

    GoodsVo queryGoodsByGoodsId(String goodsId);

    void saveGoods(GoodsRequest request, User user);

    void updateGoods(UpdateGoodsRequest request);

    void deleteGoodsById(String goodsId);

    List<GoodsVo> queryGoods(GoodsQueryRequest request);
}
